﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Syspetro.Deploy.Jwt
{
    public class JwtTokenOptions
    {
        /// <summary>
        /// 签发方密钥
        /// </summary>
        public string IssuerSigningKey { get; set; } = "U2FsvvlVkX1+6H3D8Q/yQMhInzTdRZI4778UGetbyaag=s";
        /// <summary>
        /// 签收方
        /// </summary>
        public string ValidAudience { get; set; }
        /// <summary>
        /// 签发方
        /// </summary>
        public string ValidIssuer { get; set; }
        /// <summary>
        /// 验证签发方
        /// </summary>
        public bool ValidateIssuer { get; set; } = false;
        /// <summary>
        /// 验证签收方
        /// </summary>
        public bool ValidateAudience { get; set; } = false;
        /// <summary>
        /// 验证生存期
        /// </summary>
        public bool ValidateLifetime { get; set; } = true;
        /// <summary>
        /// 登录过期时间（分钟）
        /// </summary>
        public int ExpiredTime { get; set; } = 612;
        /// <summary>
        /// 刷新期限（分钟）
        /// </summary>
        public int ExpiredRefresh { get; set; } = 0;
    }
}
